import Layout from '../../layout'
import employees from '../../views/employees'
import detail from '../../views/employees/detail'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: employees,
      meta: {
        title: 'employees',
        icon: 'user'
      }
    },
    {
      path: 'detail/:id',
      name: 'detail',
      component: detail,
      hidden: true,
      meta: {
        title: '员工详情',
        icon: 'user'
      }
    },
    {
      path: 'print/:id',
      name: 'print',
      component: () => {
        return import('../../views/employees/print/index.vue')
      },
      hidden: true,
      meta: {
        title: '打印'
      }
    }
  ]
}
